package com.happyfamily.springboot.crowdsourcingplatform;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2
@EnableTransactionManagement
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class CrowdsourcingplatformApplication
		//extends SpringBootServletInitializer
{
	public static void main(String[] args)
	{
		SpringApplication.run(CrowdsourcingplatformApplication.class, args);
	}

	/**
	 * 修改启动类，继承SpringBootServletInitializer类并重写configure方法
	 */
	//	@Override
	//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder)
	//	{
	//		//注意这里的参数要指向原先用main方法执行的Application启动类
	//		return builder.sources(CrowdsourcingplatformApplication.class);
	//	}
}



